using Microsoft.EntityFrameworkCore;
using MVC.Db;
using MVC.Models;
namespace MVC.Db
{
    public class DbDemo : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder builder){
                var Sql = "server=.;database=Mall;uid=sa;pwd=123456";
                builder.UseSqlServer(Sql);
        }
       public DbSet<Category> categorie{get;set;}
       public DbSet<Product> product{get;set;}
    }
}
